package com.gjy.sentinel.demo.example;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-10-15 17:08:11
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @Resource
    IOrderService orderService;

    @GetMapping("/t1")
    public String t1() {
        String order = orderService.createOrder("u001", "SKU001", 1);
        System.out.println("[注解方式] result = " + order);
        return order;
    }

}
